import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'

import leader from "./modules/leader.js";
import yanqq from "./modules/yanqq.js";
import hanjinqi from "./modules/hanjinqi.js";
import dz from "./modules/dz.js";
import shmily from "./modules/shmily.js";

const vuexLocal = new VuexPersistence({
  storage: window.localStorage
})
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    leader,
    yanqq,
    hanjinqi,
    dz,
    shmily
  },
  plugins: [vuexLocal.plugin]
})
export default store